﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using NetBay.Core.BusinessEntities.Workflow;
using Rio.Framework.Pages.Helpers.Utils;

namespace Rio.Framework.Pages.AppCode.Extensions
{
    public static class WorkflowStateInfoExtension
    {
        public static Color GetColor(this WorkflowStateInfo info)
        {
            return ColorUtils.GetColorFromString(info.Color);
        }

        public static BitmapImage GetIcon(this WorkflowStateInfo info)
        {
            return new BitmapImage(new Uri(info.Icon, UriKind.Relative));
        }
    }
}
